package net.gz01.wallet.channel.epay95;

import net.gz01.wallet.channel.IChannel;
import net.gz01.wallet.message.DFReq;
import net.gz01.wallet.message.DFResp;
import net.gz01.wallet.message.QueryReq;
import net.gz01.wallet.message.QueryResp;
import net.gz01.wallet.web.config.SystemEnum.Resp;
import net.gz01.wallet.web.model.TradeOrder;

/**
 * 双乾渠道
 *
 */
public class Epay95Channel implements IChannel {

	@Override
	public DFResp payment(DFReq req, TradeOrder order) throws Exception {
		DFResp rsp = new DFResp(req);
		rsp.setCodeAndMsg(Resp.Success.getCode(), Resp.Success.getMsg());
		return rsp;
	}

	@Override
	public QueryResp query(QueryReq req, TradeOrder order) throws Exception {
		QueryResp rsp = new QueryResp(req);
		rsp.setCodeAndMsg(Resp.Success.getCode(), Resp.Success.getMsg());
		rsp.setOriginalRespCode(Resp.Success.getCode());
		rsp.setOriginalRespMsg(Resp.Success.getMsg());
		return rsp;
	}

}
